]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
screenshot-ui: Bind button to shot/cast
authorIvan Molodetskikh <yalterz@gmail.com>
Thu, 9 Dec 2021 19:28:10 +0000 (22:28 +0300)
committerMarge Bot <marge-bot@gnome.org>
Sat, 29 Jan 2022 14:43:48 +0000 (14:43 +0000)
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2103>

js/ui/screenshot.js

index 8c41f4efed3b3bdd3cee247ac95341342248cfdc..ce6ff26a2e101d11016447bb2c8dc7874a869ab4 100644 (file)
@@ -1850,6 +1850,15 @@ class ScreenshotUI extends St.Widget {
             return Clutter.EVENT_STOP;
         }
 
+        if (symbol === Clutter.KEY_v || symbol === Clutter.KEY_V) {
+            if (this._shotButton.checked)
+                this._castButton.checked = true;
+            else
+                this._shotButton.checked = true;
+
+            return Clutter.EVENT_STOP;
+        }
+
         if (symbol === Clutter.KEY_Left || symbol === Clutter.KEY_Right ||
             symbol === Clutter.KEY_Up || symbol === Clutter.KEY_Down) {
             let direction;